package com.yydlz.users.Configuration;

import com.yydlz.users.Interceptors.JWTInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

//        registry.addInterceptor(new JWTInterceptor())
//                .addPathPatterns("/**") //添加拦截路径
//                .excludePathPatterns("/users/**","/jwt/**");//跳过哪个路径，以实际项目为准
    }
}
